<!DOCTYPE html>
<html>
<head>
    <meta charset="UTF-8">
    <!-- import CSS -->
    <link rel="stylesheet" href="css/eui.css">
    <style>
        .c1{
            border: 1px solid red;
            border-radius: 5px;
            text-align: center;
            background-color: #0aa1ed;
        }
    </style>
</head>
<body>
<div id="app">
<!--将一行划分为两等份-->
    <!--将 type 属性赋值为 'flex'，可以启用 flex 布局，
    并可通过 justify 属性来指定 start, center, end,
    space-between, space-around 其中的值来定义子元素的排版方式。-->
    <el-row type="flex" class="row-bg">
        <el-col :span="6"><div class="c1">1</div></el-col>
        <el-col :span="6"><div class="c1">1</div></el-col>
        <el-col :span="6"><div class="c1">1</div></el-col>
    </el-row>
    <el-row type="flex" class="row-bg" justify="center">
        <el-col :span="6"><div class="c1">1</div></el-col>
        <el-col :span="6"><div class="c1">1</div></el-col>
        <el-col :span="6"><div class="c1">1</div></el-col>
    </el-row>
    <el-row type="flex" class="row-bg" justify="end">
        <el-col :span="6"><div class="c1">1</div></el-col>
        <el-col :span="6"><div class="c1">1</div></el-col>
        <el-col :span="6"><div class="c1">1</div></el-col>
    </el-row>
    <el-row type="flex" class="row-bg" justify="space-between">
        <el-col :span="6"><div class="c1">1</div></el-col>
        <el-col :span="6"><div class="c1">1</div></el-col>
        <el-col :span="6"><div class="c1">1</div></el-col>
    </el-row>
    <el-row type="flex" class="row-bg" justify="space-around">
        <el-col :span="6"><div class="c1">1</div></el-col>
        <el-col :span="6"><div class="c1">1</div></el-col>
        <el-col :span="6"><div class="c1">1</div></el-col>
    </el-row>
    <hr>
    <el-row>
        <!--总共为24份-->
        <!--span可以不加冒号,里面显示数值加和不加效果一样-->
        <el-col :span="12"><div class="c1">占12</div></el-col>
        <el-col :span="12"><div class="c1">占12</div></el-col>
    </el-row>
    <!--gutter 设置间距-->
    <el-row gutter="20">
        <!--span可以不加冒号,里面显示数值加和不加效果一样-->
        <el-col span="8"><div class="c1">占8</div></el-col>
        <el-col span="8"><div class="c1">占8</div></el-col>
        <el-col span="8"><div class="c1">占8</div></el-col>
    </el-row>
    <h1>练习四等份</h1>
    <el-row gutter="2">
        <!--span可以不加冒号,里面显示数值加和不加效果一样-->
        <el-col span="6"><div class="c1">占6</div></el-col>
        <el-col span="6"><div class="c1">占6</div></el-col>
        <el-col span="6"><div class="c1">占6</div></el-col>
        <el-col span="6"><div class="c1">占6</div></el-col>
    </el-row>
    <h1>练习: 3:1</h1>
    <el-row gutter="8" style="width: 1200px;margin: 0 auto;">
        <!--总共为24份-->
        <!--span可以不加冒号,里面显示数值加和不加效果一样-->
        <el-col span="18"><div class="c1">占18</div></el-col>
        <el-col span="6"><div class="c1">占6</div></el-col>
    </el-row>
    <h1>分栏偏移</h1>
    <el-row gutter="8">
        <!--总共为24份-->
        <!--span可以不加冒号,里面显示数值加和不加效果一样-->
        <el-col span="20" offset="2"><div class="c1">占18</div></el-col>
        <!--offset设置偏移数量
        offset是左边的偏移量-->
    </el-row>
</div>
</body>
<!-- import Vue before Element -->
<script src="js/vue.js"></script>
<!-- import JavaScript -->
<script src="js/eui.js"></script>
<script>
    let v=new Vue({
        el: '#app',
        data: function() {
            return { }
        }
    })
</script>
</html>